package cn.edu.scau.cmi.chenyiqiu.client;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class AbstractFactoryClient extends Application{
    @Override
    public void start(Stage primaryStage) {
        try {
            // Read file fxml and draw interface.
            Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/chenyiqiu/abstractFactory/domainFactory/ui.fxml"));
            Scene scene =new Scene(root);
            primaryStage.setTitle("Abstract Factory");
            primaryStage.setScene(scene);
            primaryStage.show();

        } catch(Exception event) {
            event.printStackTrace();
        } 
    }

    public static void main(String[] args) {
        launch(args);
    }

}
